<?php
/*Route::get('/', function () {
    return view('welcome');
});*/

Route::get('/','home\HomeController@index');
Route::get('admin','admin\AdminController@index');
Route::get('basics/info','admin\BasicsController@info');
Route::get('admin/info','admin\BasicsController@info');
Route::get('basics/change_pass','admin\BasicsController@change_pass');
Route::get('admin/change_pass','admin\BasicsController@change_pass');
Route::get('basics/adv','admin\BasicsController@adv');
Route::get('user/hy_list','admin\UserController@hy_list');
Route::get('user/edit/hy_list','admin\UserController@hy_list');
Route::get('user/dels/hy_list','admin\UserController@hy_list');
Route::get('user/del/hy_list','admin\UserController@hy_list');
Route::get('user/hy_list/{key}','admin\UserController@hy_list');
Route::get('user/cateedit','admin\UserController@cateedit');
Route::get('user/djgl','admin\UserController@djgl');
Route::get('user/hyjl_list','admin\UserController@hyjl');
Route::get('admin/qxgl','admin\AdminController@qxgl');
Route::get('admin/gly_list','admin\AdminController@gly_list');
Route::get('admin/person_info','admin\AdminController@person_info');

Route::get('goods/goods_list','admin\GoodsController@goods_list');
Route::get('goods/goods_add','admin\GoodsController@goods_add');
Route::get('goods/goods_cate','admin\GoodsController@goods_cate');
Route::get('goods/goods_trash','admin\GoodsController@goods_trash');
Route::get('goods/goods_manage','admin\GoodsController@goods_manage');


Route::get('goods/goods_cateadd','admin\GoodsController@goods_cateadd');

Route::get('goods/goods_cate_del/{id}','admin\GoodsController@goods_cate_del');

Route::get('goods/goods_uploading','admin\GoodsController@goods_uploading');
Route::get('goods/goods_export','admin\GoodsController@goods_export');
Route::get('goods/goods_virtual','admin\GoodsController@goods_virtual');
Route::get('goods/goods_virtual_add','admin\GoodsController@goods_virtual_add');
Route::get('admin/goodsdel/{id}','admin\GoodsController@goodsdel');
Route::get('admin/goodsdels/{str}','admin\GoodsController@goodsdels');
Route::get('admin/goods_del/{str}','admin\GoodsController@goods_del');
Route::get('admin/goods_huan/{str}','admin\GoodsController@goods_huan');
Route::get('admin/one_huan/{id}','admin\GoodsController@one_huan');
Route::get('admin/one_del/{id}','admin\GoodsController@one_del');
Route::get('admin/onedels/{id}','admin\GoodsController@onedels');
Route::get('admin/search/{arr}','admin\GoodsController@search');

Route::get('deal/deal_list','admin\DealController@deal_list');
Route::get('deal/deal_order','admin\DealController@deal_order');
Route::get('deal/deal_order_manage','admin\DealController@deal_order_manage');
Route::get('admin/login','admin\LoginController@login');

Route::get('admin/edit/{id}','admin\UserController@edit');
Route::post('admin/edit_do','admin\UserController@edit_do');
Route::get('admin/del/{id}','admin\UserController@del');
Route::post('admin/add_do','admin\UserController@add_do');
Route::get('admin/dels/{str}','admin\UserController@dels');
Route::get('basics/login','admin\LoginController@login');
Route::get('user/login','admin\LoginController@login');
Route::get('deal/dels/deal_order_manage','admin\DealController@deal_order_manage');

Route::get('user/edit/{id}','admin\UserController@edit');
Route::post('user/edit_do','admin\UserController@edit_do');
Route::get('user/del/{id}','admin\UserController@del');
Route::post('user/add_do','admin\UserController@add_do');
Route::get('user/dels/{str}','admin\UserController@dels');
Route::get('user/del/user/hy_list','admin\UserController@hy_list');
Route::get('user/dels/user/hy_list','admin\UserController@hy_list');
Route::get('user/del/login','admin\LoginController@login');
Route::get('user/edit/login','admin\LoginController@login');
Route::get('user/dels/login','admin\LoginController@login');



Route::get('deal/del/{id}','admin\DealController@del');
Route::get('deal/dels/{str}','admin\DealController@dels');
Route::get('deal/search','admin\DealController@search');
Route::get('node/node_list','admin\NodeController@node_list');
Route::get('node/away/{id}','admin\NodeController@away'); 
Route::get('node/module/{rid}/{str}/{selected_val}','admin\NodeController@module');
Route::get('node/module/{rid}//{selected_val}','admin\NodeController@module_res');
Route::get('node/middle/{id}/{node_id}','admin\NodeController@middle');

Route::get('home/cate','home\CateController@cate');
Route::get('home/goods','home\GoodsController@goods');
Route::get('home/shopping','home\ShoppingController@shopping');
Route::get('home/collect','home\CollectController@collect_list');
Route::get('home/order_info/{name}','home\OrderController@order_info');
Route::get('home/login','home\LoginController@login_list');
Route::get('home/register','home\LoginController@register_list');
Route::get('home/info','home\OrderController@info_list');

Route::get('admin/login_out','admin\LoginController@login_out');
Route::get('home/change_city','home\OrderController@change_city');



Route::post('admin/info_do','admin\BasicsController@infoadd');
Route::post('admin/info_upd','admin\BasicsController@infoupd');
Route::post('admin/upload_img','admin\BasicsController@imgUpload');
Route::post('admin/pasupd','admin\BasicsController@pasupd');
Route::post('admin/advadd','admin\BasicsController@advadd');
Route::get('admin/advupd/{id}','admin\BasicsController@advupd');
Route::get('admin/advdel/{id}','admin\BasicsController@advdel');
Route::post('admin/advupd_do','admin\BasicsController@advupd_do');


Route::post('admin/login_do','admin\LoginController@login_do');		//登录验证
Route::get('admin/code/{temp}',"admin\LoginController@code");		//验证码
Route::post('admin/guan_add','admin\AdminController@guan_add');		//管理员增加
Route::get('admin/gly_del/{id}','admin\AdminController@gly_del');	//管理员删除路由
Route::post('admin/ge_up','admin\AdminController@gly_up');			//修改管理员信息路由
Route::post('admin/gly_pass','admin\AdminController@gly_pass');		//修改管理员密码路由
Route::post('goods/add_do','admin\GoodsController@add_do');			//添加商品通用信息路由
Route::get('goods/attr/{id}','admin\GoodsController@attr');			//查询商品属性路由
Route::post('goods/attr_do','admin\GoodsController@attr_do');		//添加商品属性路由
Route::get('goods/goods_select','admin\GoodsController@goods_select');//查询商品属性路由


Route::get('home/cate','home\CateController@cate');
Route::get('home/logout','home\HomeController@logout_list');
Route::get('home/goods','home\GoodsController@goods');
Route::get('home/shopping','home\ShoppingController@shopping');
Route::get('home/collect','home\CollectController@collect_list');
Route::get('home/foot','home\FootController@foot_list');
Route::get('home/confirm','home\ConfirmController@confirm_list');
Route::get('home/pay','home\PayController@pay_list');
Route::get('home/done','home\DoneController@done_list');
Route::post('home/search_list','home\SearchController@search_list');
Route::get('home/captcha/{tmp}','home\LoginController@captcha_list');
Route::post('home/search_list','home\SearchController@search_list');
Route::get('home/searkey/price_citem/{s_num}/{b_num}','home\SearchController@price_citem');
Route::post('home/sign','home\LoginController@do_sign');
Route::post('home/do_login','home\LoginController@do_login');
Route::post('home/check_code','home\LoginController@check_code');
Route::post('home/chang_update','home\OrderController@change_update');
Route::post('home/addImage','home\OrderController@add_image');
Route::get('home/change_image','home\OrderController@change_image');
Route::get('home/change_pass','home\OrderController@change_pass');
Route::post('home/change_pass','home\OrderController@add_pass');
Route::get('home/bind_phone','home\OrderController@bind_phone');//渲染绑定验证码路由
Route::post('home/bind_phone','home\OrderController@get_phone');//获取验证码路由
Route::post('home/get_phone','home\OrderController@create_phone');//提交验证码路由
Route::get('home/forget_password','home\OrderController@forget_password');//提交验证码路由
Route::post('home/find_password','home\OrderController@find_password');//寻找密码的路由
Route::post('home/reset_password','home\OrderController@rest_password');//重置密码
Route::get('home/shopping_address','home\OrderController@shopping_address');//收货地址
Route::get('home/change_address','home\OrderController@change_address');//收货地址
Route::get('home/selectd_address','home\OrderController@selectd_address');//收货地址
Route::get('goods/goodsList','admin\GoodsController@selected_goods');//商品查询
Route::get('goods/search_goods','admin\GoodsController@search_goods');//商品查询

